<?php
/*
 * @version		2.2.0
 * @category	Plugin
 * @package		Joomla
 * @author		Original Author <serafinobilotta@hotmail.com>
 * @license		GNU/GPL, see http://www.gnu.org/licenses/gpl-2.0.html
 * @link		http://www.p2warticles.com/2011/06/scrolling-share-bar-joomla/
 * @since		2.2.0
 */

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

class JFormFieldMenuItem extends JFormField
{
	/**
	* Element name
	*
	* @access	protected
	* @var		string
	*/
	var	$_name = 'MenuItem';

	function  getInput()
	{	
		$std = new stdClass();
		$std->text = JText::_('--- Select All ----');
		$std->value='';
		$std->disable='';
		
		$tmp = array( $std );
		$selections = JHTML::_('menu.linkoptions');
		$selections = array_merge($tmp, $selections);


		return JHTML::_('select.genericlist',   $selections, ''.$this->name.'[]', 'class="inputbox" size="15" multiple="multiple"', 'value', 'text', $this->value, $this->name );
				 
		
	}
}
